//
//  LSRSquareCell.m
//  BaiSiProject
//
//  Created by lshenrong on 16/7/10.
//  Copyright © 2016年 lshenrong. All rights reserved.
//

#import "LSRSquareCell.h"
#import <UIImageView+WebCache.h>
#import "LSRSquareItem.h"
@class LSRSquareCell;
@interface LSRSquareCell()
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;


@end

@implementation LSRSquareCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setItem:(LSRSquareItem *)item

{
    self.iconImageView.userInteractionEnabled=YES;
    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:item.icon] placeholderImage:[UIImage imageNamed:@"defaultUserIcon"]];
    
    self.nameLabel.text=item.name;
    
    
}
@end
